package game.components;

/**
 * The score class keeping track of balls left and points earned
 * @author Marius Haugen
 */
public class Score {
	
	protected static int totalScore;
	protected static int levelScore;
	protected static int ball;
	
	/**
	 * Constructor that sets level score to 0 and the number of balls to the game default
	 * @param score Score from previous levels
	 */
	public Score(int score){
		Score.totalScore = score;
		levelScore = 0;
		ball = Constants.balls;
	}
	
	public static int getBalls(){
		return ball;
	}
	
	public static int getLevelScore(){
		return levelScore;
	}
	
	public static int getTotalScore(){
		return totalScore;
	}
	
	public static void setTotalScore(int totalScore) {
		Score.totalScore = totalScore;
		
	}

	public static void setLevelScore(int score) {
		levelScore = score;
		
	}

}
